#ifndef _PRC_CTRL_H
#define _PRC_CTRL_H

#include "CLogcat.h"

#ifdef __cplusplus
extern "C"{
#endif

//copy from RcPrvdConst.java#RCDevSource
#define NANO_HID 1
#define NANO_BLE_NODE 2
#define JINJU_BLE_GATT 3

typedef struct process_callback {
    int (*onProcessBuffer)(unsigned char *data, int len);

    int (*onProcessKeyEvent)(int keycode, int value);
} process_callback_t, *process_callback_p;

int init_pctrl(process_callback_p pcb);

int start_pctrl(int id);

int do_process(int id, unsigned char *data, int len);

int stop_pctrl(int id);

int destroy_pctrl();

int get_device_state();

#ifdef __cplusplus
}
#endif

#endif